<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>交易管理-个人中心-魔步网</title>
<?php include_once(VIEWPATH."public/header_title.php");?>
<link href="<?php echo _get_cfg_path('css')?>base.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('css')?>common.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('lib')?>uploadify/uploadify.css" type="text/css" rel="stylesheet" />
<!--[if IE 6]>
<script src="js/DD_belatedPNG.js" type="text/javascript" ></script>
<script>DD_belatedPNG.fix('a,img');</script>
<![endif]-->
</head>
<body>
<?php include_once(VIEWPATH."public/header.php");?>
<div class="mainbody" id="mainbody">
    <div class="container mrgB30">
        <div class="member clearfix">
            <?php include_once(VIEWPATH."m/public/left_menu.php");?>
            <div class="fr uc_content">
            	<?php include_once(VIEWPATH."m/public/notice.php");?>
                <div class="clearfix uitopg">
                    <div class="transa">
                        <div class="aut_bti clearfix">
	                            <a class="fl" href="/m/order" style="font-size:14px;background:#F4BBCC;width:100px;color:white;text-align:center;cursor:pointer;height:28px;line-height:28px;">我的订单</a>
	                    		<a class="curr fl" href="javascript:void(0);" style="margin-left:20px;font-size:14px;background:#cc0033;width:140px;color:white;text-align:center;cursor:pointer;height:28px;line-height:28px;">旗下艺人订单</a>
                            <div style="float: left;line-height: 14px;text-align: center; padding: 7px 0 0 20px;">
                            </div>
                            <div class="fr t_sosu">   
                              <form action="" method="post">
                                <p class="fl sele sele_ta">
	                                <a href="/m/order/artistes" <?php $paystatus = $this->input->get('paystatus');if (empty($paystatus)):?>class="curr"<?php endif;?>>全部</a>
	                                <a href="?paystatus=1" <?php if ($paystatus == 1):?>class="curr"<?php endif;?>>待付款</a>
	                                <a href="?paystatus=4" <?php if ($paystatus == 4):?>class="curr"<?php endif;?>>待评论</a>
	                                <a href="?paystatus=2" <?php if ($paystatus == 2):?>class="curr"<?php endif;?>>已完成</a>
	                                <a href="?paystatus=3" <?php if ($paystatus == 3):?>class="curr"<?php endif;?>>已过期</a>
	                                <a href="?paystatus=5" <?php if ($paystatus == 5):?>class="curr"<?php endif;?>>已拒绝</a>
	                            </p>
                                <input name="keyword" type="text" class="txt fl" value="<?php echo $keyword;?>" placeholder="请输入关键词">
                                <input name="" class="but fr" type="submit" value="搜 索">
                              </form>
                            </div>
                        </div>
                        <table class="tran_tab" width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tbody><tr>
                              <th width="80">订单编号</th>
                              <th width="80">客户</th>
                              <th width="130">工作内容</th>
                              <?php if($this->loginInsID):?><th width="90">艺人</th><?php endif?>
                              <th width="90">总价</th>
                              <th width="90">预约时间</th>
                              <th width="90">下单时间</th>
                              <th width="80">订单状态</th>
                              <th width="100">操作</th>
                            </tr>
                            <?php foreach ($list['rows'] as $key => $a): ?>
                            <tr>
                              <td><a href="/m/order/detail?id=<?=_get_key_val($a['id'])?>"><?php echo _cut_str($a['no'], 4);?></a></td>
                              <td><a target="_blank" href="/i/index/<?=$a['buyerid']?>"><?=$a['buyer_nickname']?></a></td>
                              <td><div class="t_cont"><a title="<?=$a['title']?>" href="/m/order/detail?id=<?=_get_key_val($a['id'])?>"><?php echo _cut_str($a['title'],10);?></a></div></td>
                              <?php if($this->loginInsID):?><td><a target="_blank" href="/i/index/<?=$a['sellerid']?>"><?php echo $a['seller_nickname'];?></a></td><?php endif?>
                              <td><?php echo ($a['totalprice'] == '0.00') ? '面谈': $a['totalprice'];?></td>
                              <td><?php if($a['endtime']>$a['begtime']) echo date('m-d',$a['begtime']).'至'.date('m-d',$a['endtime']); else echo date('Y-m-d',$a['begtime']);?></td>
                              <td><?php echo date('m-d H:i:s',$a['addtime']);?></td>
                              <td>
                              	<?php if($a['paystatus']==1):?>
                                    <font color="red">待付款</font>
                                <?php elseif( $a['paystatus']==2 ):?>
                                  	<?php if ($a['commentstatus'] == 2):?>
                                		<font color="green">交易完成</font>
                                	<?php else :?>
                                  		<font color="green">已支付</font>
                                  	<?php endif;?>
                                <?php elseif ($a['paystatus']==3):?>
                                    <font color="red">已过期</font>
                                <?php else:?>
                                	<font color="red">等待确认</font>
                                <?php endif?>
                              </td>
                              <td>
                              	<?php if($a['sellerid']==$this->thatUser['id'] || ($this->loginInsID>0 && $a['sellerid']<>$this->loginID && $a['buyerid']<>$this->loginID ) ):?>
                                  <?php if($a['paystatus']==3):?><?php elseif($a['reject']==1):?><?php else:?><a class="t_delete order_operate_immediately" href="/m/order/agree?id=<?=_get_key_val($a['id'])?>">确认</a><?php endif?>
                                  <?php if(empty($a['reject']) && $a['paystatus']!=3):?><a class="XT-modify order_operate_immediately" href="javascript:;" _val="<?=_get_key_val($a['id'])?>">编辑</a><?php endif?>
<!--                                  <a class="t_delete" href="/m/order/del?id=<?=_get_key_val($a['id'])?>">删除</a>-->
                                  <?php if ($a['paystatus']==2 && $a['reject'] == 1 && $a['commentstatus'] == 1):?>
                                  	<a href="/m/comment" class="order_operate_immediately">回复评价</a>
                                  <?php endif;?>
                                <?php endif?>
                              </td>
                            </tr>
                            <?php endforeach;?>
                          </tbody>
                        </table>
                    </div>

                    <div class="page">
                      <?=$list['pages']?>
                    </div>



                   
                </div>

            </div>
        </div>
        <div class="help_bottom"></div>
    </div> 
</div>
<!--mainbody-->
<?php include_once(VIEWPATH."public/footer.php");?>
<div class="popover-mask"></div>
<div class="popover complaint addcust">
  <div class="compl_top"><span class="fl">编辑价格</span><input type="hidden" name="orderid" id="orderid" value=""><a href="javascript:;" title="关闭" class="close fr TX-win-close">×</a></div>
  <div class="compl_con">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="80"><font>订单号：</font></td>
              <td><span id="spanOrderId"></span></td>
            </tr>
            <tr><td height="10"></td></tr>
            <tr>
              <td width="80"><font>工作内容：</font></td>
              <td><span id="spanTitle"></span></td>
            </tr>
            <tr><td height="10"></td></tr>
            <tr>
              <td width="80"><font>价格：</font></td>
              <td><input name="price" id="price" type="text" class="txt"/></td>
            </tr>
            <tr><td height="10"></td></tr>
            <tr>
              <td>&nbsp;</td>
               <td><input class="but" id="TX-save" name="" type="button" value="保存"/></td>
            </tr>
        </table>
    </div>
</div>
</body>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>common.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery.SuperSlide.2.1.1.js"></script>
<script>jQuery(".txtScroll-top").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"topLoop",autoPlay:true});</script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>pages/m/order.js"></script>
</html>